﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LectorHuellaC
{
    public partial class InputForm : Form
    {
        public InputForm()
        {
            InitializeComponent();
            //this.variable = variable;
        }
        public string variable; 

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "")
            {
                MessageBox.Show("Ingrese la clave de acceso", "Clave de Acceso", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                textBox1.Focus();
                return;
            }
            variable = textBox1.Text;
            this.Close();
        }

        private void InputForm_Load(object sender, EventArgs e)
        {
            textBox1.Focus();
            button1.Focus();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            variable = "Cancelado";
            this.Close();
        }
    }
}
